package org.dromara.basedata.domain.bo;

import org.dromara.basedata.domain.ProcessStep;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 工序信息维护业务对象 process_step
 *
 * @author Lion Li
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProcessStep.class, reverseConvertGenerate = false)
public class ProcessStepBo extends BaseEntity {

    /**
     * 工序ID
     */
    @NotNull(message = "工序ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 工序名称
     */
    @NotBlank(message = "工序名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepName;

    /**
     * 工艺ID
     */
    @NotNull(message = "工艺ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long processId;

    /**
     * 制造工艺（工艺名称）
     */
    private String processName;

    /**
     * 工序定额
     */
    private Long workQuota;

    /**
     * 相关工种
     */
    private String relatedWorkType;

    /**
     * 备注
     */
    private String remarks;


}
